(test publishing @vitejs/plugin-rsc)#523
Conversation
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| - run: corepack enable | ||
| - run: pnpm i | ||
| - run: pnpm build | ||
| - run: pnpm -C packages/plugin-rsc tsc | ||
| - run: pnpm -C packages/plugin-rsc test | ||
|
|
||
| test-e2e: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 11 months ago
To fix the issue, add a permissions block to the root of the workflow file. This block will apply to all jobs in the workflow unless overridden by job-specific permissions. Based on the workflow's operations, the minimal permissions required are contents: read. This ensures that the GITHUB_TOKEN has only read access to repository contents, reducing the risk of unintended write operations.
| @@ -1,2 +1,4 @@ | ||
| name: ci-rsc | ||
| permissions: | ||
| contents: read | ||
| "on": |
| name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }}) | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| # TODO: shard? | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| browser: [chromium] | ||
| include: | ||
| - os: ubuntu-latest | ||
| browser: firefox | ||
| - os: macos-latest | ||
| browser: webkit | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| - run: corepack enable | ||
| - run: pnpm i | ||
| - run: pnpm build | ||
| - run: pnpm -C packages/plugin-rsc exec playwright install ${{ matrix.browser }} | ||
| - run: pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }} | ||
| env: | ||
| TEST_ISOLATED: true | ||
| - uses: actions/upload-artifact@v4 | ||
| if: always() | ||
| with: | ||
| name: test-results-${{ matrix.os }}-${{ matrix.browser }} | ||
| path: | | ||
| packages/plugin-rsc/test-results |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
|
Alpha is released from this branch. |
Description
Recreating #521 as non-fork branch.